setContactCustomer = function(id, component_id, type, component_type, name, component_name){
    document.getElementById(component_id).value=id;
    if(type != ''){
        document.getElementById(component_type).value=type;
    }
    if(name != null){
        document.getElementById(component_name).value=name;
    }    
    return true;
};

setProfileReference = function(id, component_id, type, component_type, name, component_name){
    document.getElementById(component_id).value=id;
    document.getElementById(component_type).value=type;
    document.getElementById(component_name).value=name;
    return true;
};

setProfileContact = function(id, component_id, name, component_name){
    document.getElementById(component_id).value=id;
    document.getElementById(component_name).value=name;
    return true;
};

setUser = function(id, component_id, name, component_name){
    document.getElementById(component_id).value=id;
    document.getElementById(component_name).value=name;
    return true;
};